package com.qianya.system.manage.web.login.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qianya.model.pojo.login.qo.LoginRoleInsertQO;
import com.qianya.model.pojo.login.qo.LoginRoleQO;
import com.qianya.model.pojo.login.vo.LoginRoleUserVO;
import com.qianya.model.pojo.login.vo.LoginRoleVO;
import com.qianya.system.manage.web.login.model.LoginRole;
import com.qianya.model.common.CommonResult;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 角色 服务类
 * </p>
 *
 * @author lhl
 * @since 2020-07-02
 */
public interface ILoginRoleService extends IService<LoginRole> {

    CommonResult find(LoginRoleQO loginRoleQO);

    LoginRoleVO view(String roId);

    CommonResult renewal(LoginRoleInsertQO loginRoleInsertQO);

    CommonResult create(LoginRoleInsertQO loginRoleInsertQO);

    CommonResult findRoleByUserId(String userId);

    CommonResult deleteById(String roId);

    CommonResult findAllRole();
}
